local auxiliary = require("Util.Auxiliary")


local SearchBlink = {}

function SearchBlink.StartSearch()


    ::search::

    auxiliary.Tap(594,84,2000) -- 重新开始找

      auxiliary.Tap(594,84,2000) -- 重新开始找
  auxiliary.TapAndInput(340,84,"blin")
  auxiliary.Tap(510,872,500)


  count = 0

  auxiliary.Tap(559,1089,500)

  mSleep(1000)

  while true do
    if getColor(65, 182) ~= 0xffffff or getColor(163, 177) ~= 0xffffff then
        mSleep(100)
        break
    end

    count = count + 1
    if count > 60 then
      goto search
    end
    mSleep(1000)
  end
end


return SearchBlink
